﻿//#include <QGuiApplication>
//#include <QQmlApplicationEngine>
#include <QQuickView>
#include <QQmlEngine>
#include <QQmlContext>
#include "langugemanage.h"

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QGuiApplication app(argc, argv);

//    LangugeManage* language = new LangugeManage(nullptr);
    QQuickView view;
//    qmlRegisterType<LangugeManage>("LangugeManage", 1, 0, "LangugeManage");
//    view.engine()->rootContext()->setContextProperty("view", &view);
    view.engine()->rootContext()->setContextProperty("Language", LangugeManage::instance());
//    view.engine()->rootContext()->setContextProperty("lchangeNofity", language->m_changeNofity);
    view.setSource(QUrl(QStringLiteral("qrc:/main.qml")));
    view.show();

    return app.exec();
}
